package com.easylinkin.linkappapi.lobar.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.easylinkin.linkappapi.lobar.dto.CheckPeopleInfoDTO;
import com.easylinkin.linkappapi.lobar.dto.CheckRecordDTO;
import com.easylinkin.linkappapi.lobar.entity.AppPeopleCheck;
import com.easylinkin.linkappapi.lobar.entity.vo.CheckCountVo;
import com.easylinkin.linkappapi.lobar.entity.vo.CheckRecordVo;
import com.easylinkin.linkappapi.lobar.entity.vo.PeopleInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface LaborManagementMapper extends BaseMapper<AppPeopleCheck> {

    PeopleInfoVo getPeopleInfo(CheckPeopleInfoDTO query);

    List<PeopleInfoVo> getPeopleList(CheckPeopleInfoDTO query);

    List<CheckRecordVo> getCheckRecordList(@Param("query") CheckRecordDTO query, IPage<CheckRecordVo> page);

    CheckCountVo getCount(@Param("query") CheckRecordDTO query);
}
